package org.jeecg.jxc.base.supplier.service;

import org.apache.ibatis.annotations.Param;
import org.jeecg.jxc.base.supplier.entity.SaleListGoods;
import org.jeecg.jxc.base.supplier.mapper.SaleListGoodsMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @author: 咕咚
 * @date: 2022.04.28 17:06
 * 项目名称：jeecg-boot-parent
 * 版本号：1.0
 */
@Service
public class SaleListGoodsService {
    @Resource
    private SaleListGoodsMapper saleListGoodsMapper;

    public Map<String,Object> selectgoodsList(String saleNumber, Integer customerId, Integer state) {
        List<SaleListGoods> goodsList = saleListGoodsMapper.selectSaleListGoods(saleNumber,customerId,state);
        HashMap<String, Object> map = new HashMap<>();
        map.put("rows",goodsList);
        return map;

    }
}